package com.asfo.demo.service;

import org.flowable.engine.repository.Deployment;
import org.flowable.engine.runtime.ProcessInstance;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IFlowService {

    /**
     * 创建流程引擎
     * @param filePath
     * @return
     */
     Deployment createFlow(String bpmName);

    /**
     * 开启流程
     * @param processKey
     * @param paras
     * @return
     */
     ProcessInstance startFlow(String processKey, Map<String,Object> paras);

     void genProcessDiagram(HttpServletResponse response,String processId);

     boolean completeFlow(String taskId,Map params);
}
